﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace L2
{
    class NPCTask : NPC
    {
        public string sx;
        public string sg;
        public string cj;
        public string Sx { get { return this.sx; } set { this.sx = value; } }
        public string Sg { get { return this.sg; } set { this.sg = value; } }
        public string Cj { get { return this.cj; } set { this.cj = value; } }
        public NPCTask() { }
        public NPCTask(string Name, string Type, string Sx)
        {
            this.name = Name;
            this.type = Type;
            this.sx = Sx;
        }
        public override void Speak()
        {
            Console.WriteLine("你好，我的名字是{0},我的类型是{1},你可以帮我去{2}吗？", this.name, this.type, this.sx);
        }
    }
}
